<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Web._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Untitled Page</title>
</head>
<body>
    <form id="form1" runat="server">
    <asp:DataGrid ID="dgList" runat="server" AutoGenerateColumns="False" DataKeyField="Id"
        OnEditCommand="List_Edit" OnCancelCommand="List_Cancel" OnUpdateCommand="List_Update"
        OnDeleteCommand="List_Delete">
        <Columns>
            <asp:BoundColumn DataField="FirstName" HeaderText="First"></asp:BoundColumn>
            <asp:BoundColumn DataField="LastName" HeaderText="Last"></asp:BoundColumn>
            <asp:BoundColumn DataField="HeightInMeters" HeaderText="Height"></asp:BoundColumn>
            <asp:BoundColumn DataField="WeightInKilograms" HeaderText="Weight"></asp:BoundColumn>
            <asp:EditCommandColumn ButtonType="PushButton" EditText="Edit" CancelText="Cancel" />
            <asp:ButtonColumn ButtonType="PushButton" Text="Delete" CommandName="Delete"></asp:ButtonColumn>
            <asp:EditCommandColumn UpdateText="Save"></asp:EditCommandColumn>
        </Columns>
    </asp:DataGrid>
    <p>
        <asp:Button ID="btnAdd" runat="server"></asp:Button></p>
    </form>
</body>
</html>
